@extends('web.layouts.app')

@section('styles')
    <link rel="stylesheet" type="text/css" href="{{ asset('resources/web/css/index.css') }}">
    <link rel="stylesheet" type="text/css" href="{{ asset('resources/web/css/ucenter.css')}}">
@endsection

@section('content')
<div class="uc-wrap swrap mt20">
    <div class="uc-side L">
        <div class="uc-nav">
            <ul>
                @include('web.user_center.menu')
            </ul>
        </div>
    </div>
    <div class="uc-main uc-mainbg R">
        <!--用户信息-->
        <div class="user-main-bar">
            <div class="user-headimg">
            </div>
            <div class="user-info">
                <p class="tips">
                    @if(date('G')<11)
                    早上好
                    @elseif(date('G')<13)
                    中午好
                    @elseif(date('G')<17)
                    下午好
                    @else
                    晚上好
                    @endif, {{$user->organizationalInfo->company_name}} 欢迎回来！
                </p>
                <div class="items">
                    <span class="item">用户名：{{$user->username}}</span><i>|</i>
                    <span class="item">认证：
                        <em class="onid"></em>
                        <em class="ontel"></em>
                        <em class="onemail"></em>
                    </span>
                    <i>|</i>
                    <span class="item" title="{{$user->identity}}">支付账户：{{$user->identity_id}} </span>
                </div>
            </div>
        </div>
        <!--用户资产-->
        <div class="user-capital clearfix">
            <dl class="brow-total">
            </dl>
            <ul class="item-list">
                <li>账户总额<span>{{$user->allMoney()}}</span>元</li>
                <li>可用总额<span>{{$user->allMoney()}}</span>元</li>
                <li>存钱罐收益<span>{{$user->allMoney()}}</span>元</li>
            </ul>
            <ul class="item-list">
                <li>冻结金额<span>{{$user->frozenMoney()}}</span>元</li>
                <li>充值总额<span>{{$user->frozenMoney()}}</span>元</li>
                <li>基本户总额<span>
                <a style="color:#f0893e;" href="{{ action('UserCenter\UserCenterController@transferToSavingPot',['id'=>$user->id]) }}" title="转入存钱罐" alt="转入存钱罐">{{ $user->basicMoney()  }}</a></span>元</a>
                </li>
            </ul>
            <div class="do">
             <!--    <a class="cz" href="/recharge">充值</a>
                <a href="/withdraw">提现</a> -->
            </div>
        </div>
        <!--融资列表-->
    </div>
</div>
@endsection

@section('scripts')
    <script src="{{ asset('resources/web/js/index.js') }}"></script>
@endsection